﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Kooboo.Web.Areas.Commerce.Web.UI
{
    using Kooboo.Globalization;

    static class ButtonExtensions
    {
        private static MvcHtmlString SubmitButton(this HtmlHelper htmlHelper, string text, string name = null)
        {
            return MvcHtmlString.Create(string.Format("<input type=\"submit\" id=\"{0}\" name=\"{0}\" value=\"{1}\" >", name, text.Localize()));
        }

        private static MvcHtmlString Button(this HtmlHelper htmlHelper, string text, string name = null)
        {
            return MvcHtmlString.Create(string.Format("<input type=\"button\" id=\"{0}\" name=\"{0}\" value=\"{1}\" >", name, text.Localize()));
        }
    }
}